package com.ruoyi.web.convert.realtimegatherdata;

import com.ruoyi.datastatistics.domain.Realtimegatherdata;
import com.ruoyi.web.entity.RealtimeGatherData2;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 系统报错 Convert
 *
 * @author 芋道源码
 */
@Mapper
public interface RealtimegatherdataConvert {

    RealtimegatherdataConvert INSTANCE = Mappers.getMapper(RealtimegatherdataConvert.class);

    @Mapping(source = "locationNb", target = "UserTermianlID")
    RealtimeGatherData2 convert(Realtimegatherdata bean);


    List<RealtimeGatherData2> convert(List<Realtimegatherdata> bean);

}
